﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace xKnight.Attacking
{
    public class AttackAnnounceItem
    {
        public string Description { get; private set; }
        public DateTime DateTime { get; private set; }
        public AttackingSharedReource AttackingSharedResource { get; private set; }
        public int PageResponseCode { get; private set; }
        public string PageReponseDecription { get; private set; }
        public string Url { get; private set; }
        public int NumberOfAttacks { get; private set; }
        public int AttackId
        {
            get { return AttackingSharedResource.SharedAttack.Id; }
        }

        internal AttackAnnounceItem(AttackingSharedReource attackingSharedResource, string description, DateTime dateTime
            , int pageResponseCode,string pageReponseDecription,string url)
        
        {
            this.AttackingSharedResource = attackingSharedResource;
            this.NumberOfAttacks = attackingSharedResource.NumberOfAttacks;
            this.Description = description;
            this.DateTime = dateTime;
            this.PageReponseDecription = pageReponseDecription;
            this.PageResponseCode = pageResponseCode;
            this.Url = url;
        }
    }
}
